﻿#region Using directives
using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
#endregion



namespace webapp4U.UI
{
	 [ParseChildren(true)]
	 public class ddlChatlieu : DropDownList
	 {
		 public ddlChatlieu()
		 {
			 List<webapp4U.BOL.Chatlieu> obj = webapp4U.BOL.Chatlieu.GetAllChatlieu();
			 this.DataSource = obj;
			 this.DataValueField = "ChatlieuID";
			 this.DataTextField = "Title";
			 this.DataBind();
             this.Items.Insert(0, new ListItem(Globals.GetLang("Chọn chất liệu", "Select material"), ""));
		 }
	 }
}
